{extend name="public/base"/}
{block name="style"}
    <script src="/public/lboyue/js/libs/jquery.cookie.js"></script>
    <script src="/public/lboyue/js/libs/jquerybase64.js"></script>
    <script src="/public/lboyue/js/book.js"></script>
{/block}
{block name="body"}
{include file="public/header" /}

<div class="bodySection">
            
    <div class="centerSection">
        <div class="rankingListLeft">
            <div class="section_title pxbTitle">排行榜</div>
            <div class="rankingListLeft_list">
                <ul id="rankinfopages">
                    <li id="viewnum" {eq name="type" value="viewnum"}class="active"{/eq}><a style="display: block; width:100%; height: 50px; "  href="/topinfo?type=viewnum" >点击榜</a></li>
                    <li id="collect" {eq name="type" value="collect"}class="active"{/eq}><a style="display: block; width:100%; height: 50px; "  href="/topinfo?type=collect" >收藏榜</a></li>
                    <li id="subnum" {eq name="type" value="subnum"}class="active"{/eq}><a style="display: block; width:100%; height: 50px; "  href="/topinfo?type=subnum" >热销榜</a></li>
                    <li id="end" {eq name="type" value="end"}class="active"{/eq}><a style="display: block; width:100%; height: 50px; "  href="/topinfo?type=end">完本榜</a></li>
                    <li id="yuepiao" {eq name="type" value="yuepiao"}class="active"{/eq}><a style="display: block; width:100%; height: 50px; "  href="/topinfo?type=yuepiao" >评论榜</a></li>
                    <li id="reward" {eq name="type" value="reward"}class="active"{/eq}><a style="display: block; width:100%; height: 50px; "  href="/topinfo?type=reward" >打赏榜</a></li>
                    <li id="update" {eq name="type" value="update"}class="active"{/eq}><a style="display: block; width:100%; height: 50px; "  href="/topinfo?type=update" >更新榜</a></li>
                </ul>
            </div>
        </div>

        <div class="rankingListRight">

            <div class="rankingListRight_list">
                <div class="section_title4">
                    <div class="section_titleBorderLine">

                        <span class="left wbIcon">{$title}</span>
					<!---
                    <span class="right">
                        <i><a href="/rankinfo/viewnum/week/1/"   >周</a></i>  |
                        <i><a href="/rankinfo/viewnum/month/1/"  >月</a></i>  |
                        <i><a href="/rankinfo/viewnum/total/1/" style="color: red;">总</a></i>
                    </span>
					--->
                    </div>
                </div>
                <div class="rankingListRight_table">

                    <div class="title">
                        <span class="span1">排名</span>
                        <span class="span2">分类</span>
                        <span class="span3">书名／最新章节  </span>
                        <span class="span4">字数</span>
                        <span class="span5">作者</span>
                        <span class="span6">更新时间</span>
                        <span class="span7">操作</span>
                    </div>

                    <div class="rankingListRight_tabody">
						{volist name="list" id="item"}
                        <div class="lis" style="cursor: default">
                            <span class="span1">{if ($page*20+$key)==1}<i class='red'>{$page*20+$key+1}</i>{elseif ($page*20+$key)<5}<i>{$page*20+$key+1}</i>{else}{$page*20+$key+1}{/if}</span>
							<span class="span2">［{$item.category_id| get_category=###,'title'}］</span>
							<span class="span3">
								<span class="font">
									<a href="{:url('/book/info',array("id"=>$item.id))}"><i>{$item.title}</i> <i class="huise"> {$item.lastvolume}</i></a>{if $item.fullflag==1}
									<em class="icon"></em>{/if}</span></span>
							<span class="span4">{$item.allvisit/10000|round=###,1}万</span>
							<span class="span5">{$item.author}</span>
							<span class="span6">{$item.update_time|date="m-d H:i",###}</span>
							<span class="span7"><a class="button" onclick="addbookshelf({$item.id}, 0, 2, '{$Think.config.web_pc_url|str_replace="http://www","",###}')">加入书架</a></span>
						</div>
						{/volist}

						{$list->render()}

                    </div>


                </div>
            </div>

        </div>

    </div>

</div>
{block name="include"}{include file="public:footer" /}{/block}
{/block}
{block name="script"}
    <script>
        $(document).ready(function () {
            //liactive("rankinfopages", "viewnum","", "");
            liactive("navpages", "rank", "a", "");
        });
    </script>
	<script>
		$(document).ready(function () {
			bindnews();
			bindbookshelf();
			bindnav();
		});
	</script>
{/block}


